package com.tim.dao;

import com.tim.pojo.Person;

import java.sql.SQLException;
import java.util.List;

/**
 * 作者：Tim
 * 时间：2021/4/28 10:40
 */
public interface PersonDao {
    int deletePerson(int personID) throws SQLException;
    int addPerson(Person person) throws SQLException;
    Person selectOne(int personID) throws SQLException;
    int updatePerson(Person person) throws SQLException;
    List<Person> searchPerson(String personName) throws SQLException;
    List<Person> limit(Integer currentPage,Integer pageSize,String personName) throws SQLException;
    int count(String personName) throws SQLException;
}
